package czy.demo.pojo;

/* 实体类，再没有添加注解的情况下，默认的id存储字段会被改为_id，并且会多存储一个_class字段为类名 */
public class Person {

    public Person(){}

    public Person(Integer id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    private Integer id;
    private String name;
    private int age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString(){
        return "name="+name+"&age="+age;
    }
}
